/*
 * @Description: 
 * @Author: Liu Kunpeng
 * @Date: 2021-07-30 14:55:36
 */

import store from '@/store/store'

export function setToken(token){
    window.sessionStorage.setItem('token',token)
    return 0
}
export function getToken(){
    return window.sessionStorage.getItem('token')
}
export function removeToken(){
    window.sessionStorage.removeItem('token')
}

export function removeUserName(){
    window.sessionStorage.removeItem('username')
}

export function setType(type){
    store.state.userinfo.type=type;
    return 0; 
}

export function getType(){
    return store.state.userinfo.type;
}

export function removeType(){
    store.state.userinfo.type='';
    
}